<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page import="elibrary.*" %>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Insert title here</title>
    </head>
    <body>
        <%  Date date;
                String to = "singh.roshan08@gmail.com";
                String from = "roshan@lug.nitdgp.ac.in";
                String subject = "mailer";
                String text = "tested";
                out.println("here1");
                boolean result;
                Mailer mailer = new Mailer();
                try {
                mailer.sendmail(to, from, subject, text);
                } catch (Exception e){
                        e.printStackTrace();
                        out.println("here");
                }
                //out.println(result);
                //if(result)
                //	out.println("successfully sent");
                //else
                //	out.println("sending failed");
        %>
    </body>
</html>